<html xmlns:th="https://www.thymeleaf.org">
<head>
    <title>Hello Security!</title>
</head>
<body>
    <h1>Hello Security</h1>
    <a th:href="@{/logout}">Log Out</a>
    <!-- 将 <a> 标签替换为表单 注意自定义后需要post才能退出成功 -->
    <form th:action="@{/logout}" method="post">
        <input type="submit" value="post Log Out">
    </form>
</body>
</html>